/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2016年8月17日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package sigleton;

/**
 * @Type Do
 * @Desc
 * @author boboge
 * @date 2016年8月17日
 * @Version V1.0
 */
public class Do {
    public static void main(String[] args) {
        TestInstance instance = EnumSigleton.Instance.getInstance();
        TestInstance instance2 = EnumSigleton.Instance.getInstance();
        new Thread(new Runnable() {
            @Override
            public void run() {
                TestInstance instance3 = EnumSigleton.Instance.getInstance();
                System.out.println(instance3.hashCode());
            }
        }).start();
        System.out.println(instance.hashCode() + "__" + instance2.hashCode());

    }

}
